public class Consumer implements Runnable{
	Bank bank;
	Barrier barrier;
	public Consumer(Bank bank){
		this.bank = bank;
	}
	@Override
	public synchronized void run(){
		bank.setCash(1);
		System.out.println(bank.getCash());
		
	}
	
	
}
